package com.cskaoyan.market.controller;

import com.cskaoyan.market.db.domain.MarketFootprint;
import com.cskaoyan.market.service.MarketFootprintService;
import com.cskaoyan.market.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: 付诚
 * @Date: 2024/5/6 21:22
 * @Description:
 */
@RestController
@RequestMapping("/admin/footprint")
public class AdminFootprintController {

    @Autowired
    private MarketFootprintService marketFootprint;

    @RequestMapping("list")
    private Object list(Integer page,Integer limit,String userId,String goodsId,String sort,String order) {

        List<MarketFootprint> marketFootprintList = marketFootprint.list(page, limit, userId, goodsId, sort, order);
        return ResponseUtil.okList(marketFootprintList);
    }
}
